﻿using System.Xml.Linq;
using unTroublemaker.Conditions;

namespace unTroublemaker.Parsing
{
    public class EnvVariableExistsConditionParser : ISpecificationParser
    {
        public ISpecificationItem Parse(XElement element, ISpecificationParser genericParser)
        {
            return new EnvVariableExistsCondition((string)element.Attribute("name"));
        }

        public string ElementName { get { return "check-env-variable-exists"; } }
    }
}
